package regulatoryInteractionsStats.yeast.bioJava;

import org.biojava3.core.sequence.template.Sequence;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */










/**
 *
 * @author jamie
 */
public class AlignableGene {

    private Sequence sequence;
    private final String accession;
    private boolean hasSequence;
    

    public AlignableGene(String accession, Sequence sequence) {
        
        this.accession = accession;
        setHashSequence(sequence);
        
        this.sequence = sequence;

        
    }

    public Sequence getSequence() {
        return sequence;
    }

    

    public String getAccession() {
        return accession;
    }

    public boolean hasSequence() {
        return hasSequence;
    }

    private void setHashSequence(Sequence sequence) {
        hasSequence = true;
        if(sequence == null){
            hasSequence = false;
        } else if(sequence.getLength() ==0){
            hasSequence = false;
        }
    }




    

    
}
